libxl: HVM domain S3 bugfix
authorLiu Jinsong <jinsong.liu@intel.com>
Fri, 23 Aug 2013 15:30:23 +0000 (23:30 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Oct 2013 20:52:19 +0000 (20:52 +0000)
commitfe2367b1ebe165c06cf10d4730e254e736396182
tree74182a5675bc430235b40627fb87a52fe08d71e2
parentc07134ccca7d61534aa00294126dadd9fd6cb2a2
libxl: HVM domain S3 bugfix

Currently Xen hvm s3 has a bug coming from the difference between
qemu-traditional and qemu-xen. For qemu-traditional, the way to
resume from hvm s3 is via 'xl trigger' command. However, for
qemu-xen, the way to resume from hvm s3 inherited from standard
qemu, i.e. via QMP, and it doesn't work under Xen.

The root cause is, for qemu-xen, 'xl trigger' command didn't reset
devices, while QMP didn't unpause hvm domain though they did qemu
system reset.

We have two qemu patches one xl patch to fix the HVM S3 bug:
This patch is the xl patch. It invokes QMP system_wakeup so that
qemu logic for hvm s3 could be triggered.

Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_qmp.c